﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WeatherCus.Controllers
{
    public class ForecastWeatherController : Controller
    {
        //
        // GET: /ForecastWeather/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Browse(string city)
        {
            ForecastWeatherWS.WeatherWS serv = new ForecastWeatherWS.WeatherWS();

            //ViewBag.Item = serv.GetWeatherInformations(city);
            var items = serv.GetWeatherInformations(city);

            return Json(items);
        }

    }
}
